<?php
$this->Html->addCrumb('Contact us');
//css
echo $this->Html->css(array('tws-framework', 'jquery-ui-1.8.15.custom','jquery.cluetip'), false);
 //plugins
 echo $this->Html->script(array('plugins/jquery.validate.min','plugins/additional-methods','plugins/custom-validation-methods','plugins/jquery.maskedinput-1.3','plugins/jquery.timeentry.min','plugins/jquery-ui-1.8.15.custom.min','plugins/jquery.cluetip','plugins/jquery.hoverIntent.min','plugins/jquery.form','plugins/jquery.blockUI'), false);
 //custom plugins
 echo $this->Html->script(array('mylibs/tws_console','mylibs/tws_form','mylibs/tws_overlay'), false);

$this->Html->scriptStart(array('inline' => false));
echo '
      $(function(){
        $("#ContactIndexForm").TWS_Form( {
          validate : {
          rules : {
            ContactName : {required : true},
            ContactEmailAddress: {email : true},
            ContactPhone: {phoneUS : true},
            ContactMessage: {required : true},
            ContactCaptchaText: {required : true}
          }
          }});
        $("#ContactCaptchaReload").click(function() {
          $("#ContactCaptchaImg").attr("src", "'.$this->Html->url(array("action"=>"securimage")).'/" + Math.random());
          return false;
        }).show();


        });
       ';
$this->Html->scriptEnd();
?>

<div id="mainLeft">
  <?php echo $this->Html->image('contact.jpg', array('alt' => 'Contact Us','title'=>'Contact Us', 'class'=>'photo'))?>
</div>

<div id="sideContent">
  <p><?php echo $this->Html->image('contact-logo.png', array('alt' => 'Contact Us','title'=>'Contact Us','class'=>'plain center'))?></p>
  <h1>Contact Us</h1>
  <span class="info">for further information please contact us:</span>
  <div id="contactInfo">
    <p><span class="contactMethod">P.</span><span class="contactMethodValue"> <a href="tel:+18684789563" class="contact">+1.868.478.9563</a> </span></p>
    <p><span class="contactMethod"></span><span class="contactMethodValue"><a href="tel:+18683406046" class="contact">+1.868.340.6046</a></span></p>
    <p><span class="contactMethod">E.</span><span class="contactMethodValue"><a href="mailto:&#105;&#110;&#102;&#111;&#064;&#105;&#115;&#108;&#101;&#118;&#111;&#119;&#046;&#099;&#111;&#109;" class="contact">&#105;&#110;&#102;&#111;&#064;&#105;&#115;&#108;&#101;&#118;&#111;&#119;&#046;&#099;&#111;&#109;</a></span></p>
  </div>
</div>